package com.ruoyi.web.controller.store.calc;

import com.ruoyi.common.annotation.Log;
import com.ruoyi.common.core.controller.BaseController;
import com.ruoyi.common.core.domain.entity.StoreCalc;
import com.ruoyi.common.core.domain.entity.StoreCalcDetail;
import com.ruoyi.common.core.page.TableDataInfo;
import com.ruoyi.common.enums.BusinessType;
import com.ruoyi.system.mapper.StoreCalcDetailMapper;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;
import java.util.List;

/**
 * @Author: ruohao
 * @Date: 2023/11/15
 **/
@RestController
@RequestMapping("/calc/vendor/detail")
public class VendorCalcDetailController extends BaseController {
	@Resource
	private StoreCalcDetailMapper storeCalcDetailMapper;

	@Log(title = "查询供应商盘点详情", businessType = BusinessType.OTHER)
	@GetMapping("/listAll")
	public TableDataInfo list(StoreCalcDetail storeCalcDetail)
	{
		List<StoreCalcDetail> list = storeCalcDetailMapper.selectList(storeCalcDetail);
		return getDataTable(list);
	}
}
